-- GENERATED SPELL FOR [Scourge Brute] --


function spell0_26623(pUnit, Event) --@Heal,Self--
pUnit:FullCastSpellOnTarget(47668,pUnit)
pUnit:RegisterEvent('Sorts_26623', 500, 1)
end

function spell1_26623(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(35011,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26623', 2000, 1)
end

function spell2_26623(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26623', 5350, 1)
end

function Sorts_26623(pUnit, Event)
local choix_sorts_26623 = math.random(0, 2)
if choix_sorts_26623 == 0 then
pUnit:RegisterEvent('spell0_26623', 1, 1)
end
if choix_sorts_26623 == 1 then
pUnit:RegisterEvent('spell1_26623', 1, 1)
end
if choix_sorts_26623 == 2 then
pUnit:RegisterEvent('spell2_26623', 1, 1)
end
end

function mob26623_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26623', math.random(1500, 3000), 1)
end

function mob26623_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26623_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26623_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26623, 1, 'mob26623_Action')
RegisterUnitEvent(26623, 2, 'mob26623_Leave')
RegisterUnitEvent(26623, 3, 'mob26623_Kill')
RegisterUnitEvent(26623, 4, 'mob26623_Die')
